package com.liuyi.netty.im.server.config;

import com.liuyi.netty.im.server.handle.cluster.ClusterSend;
import com.liuyi.netty.im.server.handle.message.SendMessageProcessor;
import com.liuyi.netty.im.server.handle.service.MessageListener;
import com.liuyi.netty.im.server.handle.service.MessageService;
import com.liuyi.netty.im.server.handle.service.RelationChainService;
import com.liuyi.netty.im.server.handle.service.SessionService;
import com.liuyi.netty.im.server.handle.storage.UserStorage;

public class LimManage {

    private static UserStorage userStorage;

    public static UserStorage getUserStorage() {
        return userStorage;
    }

    public static void setUserStorage(UserStorage userStorage) {
        LimManage.userStorage = userStorage;
    }

    private static RelationChainService relationChainService;

    public static RelationChainService getRelationChainService() {
        return relationChainService;
    }

    public static void setRelationChainService(RelationChainService relationChainService) {
        LimManage.relationChainService = relationChainService;
    }

    private static SessionService sessionService;

    public static SessionService getSessionService() {
        return sessionService;
    }

    public static void setSessionService(SessionService sessionService) {
        LimManage.sessionService = sessionService;
    }

    private static MessageService messageService;

    public static MessageService getMessageService() {
        return messageService;
    }

    public static void setMessageService(MessageService messageService) {
        LimManage.messageService = messageService;
    }

    private static MessageListener messageListener;

    public static MessageListener getMessageListener() {
        return messageListener;
    }

    public static void setMessageListener(MessageListener messageListener) {
        LimManage.messageListener = messageListener;
    }

    private static SendMessageProcessor sendMessageProcessor;

    public static SendMessageProcessor getSendMessageProcessor() {
        return sendMessageProcessor;
    }

    public static void setSendMessageProcessor(SendMessageProcessor sendMessageProcessor) {
        LimManage.sendMessageProcessor = sendMessageProcessor;
    }

    private static ClusterSend clusterSend;

    public static ClusterSend getClusterSend() {
        return clusterSend;
    }

    public static void setClusterSend(ClusterSend clusterSend) {
        LimManage.clusterSend = clusterSend;
    }
}
